package com.itzb.asone.system.service.impl;


import java.util.List;

import com.itzb.asone.mybatis.Criteria;
import com.itzb.asone.system.model.SysUploadFile;
import com.itzb.asone.system.repository.ISysUploadFileRepository;
import com.itzb.asone.system.service.IMessageService;
import com.itzb.asone.system.service.ISysUploadFileService;


public class SysUploadFileServiceImpl implements ISysUploadFileService{
	
	private ISysUploadFileRepository sysUploadFileRepository;
	private IMessageService messageService;

	public List<SysUploadFile> queryPage(Criteria<SysUploadFile> param){
		return sysUploadFileRepository.queryPage(param);
	}

	public Integer queryPageCount(Criteria<SysUploadFile> param){
		return sysUploadFileRepository.queryPageCount(param);
	}

	public SysUploadFile queryEntityById(String id){
		return sysUploadFileRepository.queryEntityById(id);
	}
	
	public String getFileUrl(String id){
		return sysUploadFileRepository.queryEntityById(id).getFileUrl();
	}

	public Integer insert(SysUploadFile record){
		return sysUploadFileRepository.insert(record);
	}

	public Integer updateByCriteria(Criteria<SysUploadFile> param){
		return sysUploadFileRepository.updateByCriteria(param);
	}

	public Integer deleteById(String id){
		return sysUploadFileRepository.deleteById(id);
	}

	public Integer deleteByCriteria(Criteria<SysUploadFile> param){
		return sysUploadFileRepository.deleteByCriteria(param);
	}

	public ISysUploadFileRepository getSysUploadFileRepository() {
		return sysUploadFileRepository;
	}

	public void setSysUploadFileRepository(
			ISysUploadFileRepository sysUploadFileRepository) {
		this.sysUploadFileRepository = sysUploadFileRepository;
	}

	public IMessageService getMessageService() {
		return messageService;
	}

	public void setMessageService(IMessageService messageService) {
		this.messageService = messageService;
	}

}
